<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>{{content+'_'}}纹身大咖图库</title>
    <meta name="viewport"
          content="width=device-width,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <meta name="keywords" content="纹身,刺青,纹身师,纹身图片,纹身图案,{{ tags.split('#').join(',') }}">
    <meta name="description" content="{{content}}"/>
    <link href="/css/style.css" rel="stylesheet">
    <script src="/js/dev.min.js"></script>
    <script src="/js/layout.js"></script>
    <script>

        var IMAGES = (''
            //{{each images as v,i}}
            //{{if i!=0}}
            + '|'
            //{{/if}}
            + '{{v}}'
            //{{/each}};
        ).split('|');

        $(document).ready(function () {

            if (navigator.userAgent.match(/mobile/i) == null) {
                $("#footer").css("display", "block");
                $("#likeRule").css("display", "block");
                $("#nav").css("display", "block");
                $("#banner").css("display", "block");
                $("#content").css("display", "block");
                $("#tag").css("display", "block");
                $('.likeRule>div').click(function () {
                    location.href = 'http://www.wenshendaka.com';
                });
                $("#mainAd").css("padding-top", "100px");
                $("#imageBox").css("display", "block");
            } else {
                $("#ad_box").css("display", "block");
            }

            var imageBox = {
                $s: $('#imageBox #slider'),
                max: +'{{images.length}}',
                index: 0,
                pre: function () {
                    if (imageBox.index <= 0)return;
                    imageBox.index--;
                    imageBox.$s.css('left', -imageBox.index * 100 + '%');
                    $('.arrow-right').removeClass('hide');
                    if (imageBox.index == 0) $('.arrow-left').addClass('hide');
                },
                next: function () {
                    if (imageBox.index >= (imageBox.max - 1))return;
                    imageBox.index++;
                    imageBox.$s.css('left', -imageBox.index * 100 + '%');
                    $('.arrow-left').removeClass('hide');
                    if (imageBox.index == (imageBox.max - 1)) $('.arrow-right').addClass('hide');
                }
            };

            if (imageBox.max > 1) {
                $('.right-box').click(imageBox.next);
                $('.left-box').click(imageBox.pre);
            } else {
                $('.arrow-right').addClass('hide');
            }

            $('#button_detail').click(function () {
                location.href = $('#detailUrl').text();
            });

            $('#button_contact').click(function () {
                //location.href = $('#detailUrl').text();
                layer.open({
                    skin: 'demo-class',
                    title: '',
                    content: '<h2>联系方式</h2><br/>' +
                    '<h2>手机号：' + $('#phoneNum').text() + '</h2>' +
                    '<h2>微信号：' + $('#wxNum').text() + '</h2>',
                    shade: 0.3,
                    shadeClose: true,
                    closeBtn: false,
                    area: ['300px', '300px']
                });
            });
        })
    </script>
</head>
<body>
<img src="{{images[0]}}" style="display: none">
<nav id="nav" style="display: none" >
    <div class="flu-main">
        <a href="/"><img src="/img/logo.png" alt="纹身大咖图库"></a>

        <div class="btn-download"></div>
    </div>
</nav>

<div id="mainAd">

    <div id="banner" class="flu-main" style="display: none">
        <div class="banner"></div>
    </div>

    <div id="details" class="flu-main" >

        {{if content}}
        <h1 id="content" style="display: none" >{{content}}</h1>
        {{/if}}

        {{if tags}}
        <div id="tag" style="display: none" >
            {{each tags.split('#') as tag}}
            <span>{{tag}}</span>
            {{/each}}
        </div>
        {{/if}}

        <div id="ad_box" style="display: none">
            <div class="slider">
                {{each images as img}}
                <div class="flu-main">
                    <img class="ad_img" src="{{img}}?imageView2/2/w/1400/h/787/format/jpg/q/90">
                </div>
                {{/each}}
            </div>
        </div>

        <div id="imageBox" style="display: none">
            <div class="flu-main arrowArea flu-v16-9">
                <div class="left-box vam">
                    <div class="arrow arrow-left hide"></div>
                </div>
                <div class="right-box vam">
                    <div class="arrow arrow-right"></div>
                </div>
            </div>
            <div id="slider">

                {{each images as img}}
                <div class="flu-main flu-v16-9 image"
                     style="background-image:url({{img}}?imageView2/2/w/1400/h/787/format/jpg/q/90)"></div>
                {{/each}}

            </div>
        </div>

        <div class="button_area">
            <div class="button_detail active" id="button_detail">查看详情</div>
        </div>

        <div class="button_area">
            <div class="button_detail active" id="button_contact">立即联络</div>
        </div>

        <div id="detailUrl" style="display: none">{{detailUrl}}</div>
        <div id="phoneNum" style="display: none">{{phoneNum}}</div>
        <div id="wxNum" style="display: none">{{wxNum}}</div>

        <div id="likeRule" class="likeRule flu-main" style="display: none">
            <div>
                <svg version="1.1" id="like" xmlns="http://www.w3.org/2000/svg"
                     xmlns:xlink="http://www.w3.org/1999/xlink"
                     x="0px" y="0px" viewBox="0 0 96 96" enable-background="new 0 0 96 96" xml:space="preserve">
                    <path fill-rule="evenodd" clip-rule="evenodd" fill="#FF1A1A"
                          d="M48,25.4C35.6-3.8,0.2,3,0,36.8c-0.1,18.6,16.8,25.5,28.1,32.9,C39,77,46.8,86.8,48.1,91c1-4.1,9.7-14.2,19.8-21.4C79,61.7,96.1,55.2,96,36.6C95.8,2.7,59.8-2.6,48,25.4z"></path>
                </svg>
            </div>
        </div>
    </div>
</div>

<footer id="footer" style="display: none">
    <div class="flu-main">
        <div class="content">
            <div class="footer-block">
                <h5>加入我们
                    <small>JOINUS</small>
                </h5>
                <p>hr@utodo.cn</p>
            </div>
            <div class="footer-block">
                <h5>商务合作
                    <small>BUSINESS</small>
                </h5>
                <p>bd@utodo.cn</p>
            </div>
            <div class="footer-info">
                <h6>北京微蜜科技有限公司</h6>

                <p><b>weimiTechnology Ltd.</b>©2014utodo.cn</p>

                <p>京ICP备14052625号</p>
            </div>
        </div>
    </div>
</footer>

<script>

    (function () {
        var bp = document.createElement('script');
        bp.src = '//push.zhanzhang.baidu.com/push.js';
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(bp, s);
    })();

    (function () {
        var _hmt = _hmt || [];
        var hm = document.createElement("script");
        hm.src = "//hm.baidu.com/hm.js?0bb9fe149e6ec763a15c8a5a3e36f4d1";
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(hm, s);
    })();

    var cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " http://");
    document.write(unescape("%3Cspan id='cnzz_stat_icon_1256682352' style='display:none;'%3E%3C/span%3E%3Cscript  src='" + cnzz_protocol + "s4.cnzz.com/stat.php%3Fid%3D1256682352' type='text/javascript'%3E%3C/script%3E"));

</script>

</body>
</html>